<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <script src="jquery.js"></script>
    <title>康鸿建的作业列表</title>
    <style>
        body {
            background-color: #eadfbf;
        }
        
        h1 {
            text-align: center;
        }
        
        ul,
        li {
            list-style: none;
        }
        
        ul {
            width: 800px;
            height: 1500px;
            border: 1px dashed red;
            margin: 0 auto;
            overflow: hidden;
            background-color: azure;
        }
        
        li {
            width: 100px;
            height: 50px;
            background-color: royalblue;
            float: left;
            margin: 10px;
            border-radius: 5px;
            cursor: pointer;
            text-align: center;
        }
        
        li a {
            color: white;
            text-decoration: none;
            font-size: 20px;
            line-height: 50px;
        }
        
        li:hover {
            opacity: 0.5;
            z-index: 100;
            box-shadow: 0 10px 10px green
        }
        
        ul li:nth-child(3n+1) {
            background-image: linear-gradient(to bottom right, red, rgba(0, 0, 0, 0));
        }
        
        ul li:nth-child(3n+2) {
            /*background-image:linear-gradient(to left, red,orange,yellow,green,blue,indigo,violet);*/
            background-image: linear-gradient(pink, lightblue, lightgreen);
        }
        
        ul li:nth-child(3n+0) {
            background-image: linear-gradient(40deg, #99CC33, #FF6666, #336699, #FF0033);
        }
        
        .top {
            background-color: cornflowerblue;
            position: fixed;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            right: 40px;
            bottom: 40px;
            cursor: pointer;
        }
        
        .top:hover {
            box-shadow: 0 0 10px 10px yellow;
        }
        
        .top:after {
            width: 0;
            height: 0;
            /* 内容 */
            position: absolute;
            content: "";
            left: 5px;
            top: 8px;
            border-bottom: 20px solid #c1e7c0;
            border-right: 15px solid transparent;
            border-left: 15px solid transparent;
        }
    </style>
</head>

<body>
    <h1>作业列表</h1>
    <div class="top"></div>
    <ul>
        <li><a href="千图网/千图网.html">作业</a></li>
        <li><a href="小米商城/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
        <li><a href="作业/index.html">作业</a></li>
    </ul>
    <script>
        $(function() {
            $('.top').click(function() {
                $('html,body').animate({
                    'scrollTop': 0
                }, 600)
            })
        })
    </script>
</body>

</html>